Optimal. Leaf size=67 \[ -\frac{\text{PolyLog}\left (3,\frac{2}{1-a x}-1\right )}{2 c}+\frac{\tanh ^{-1}(a x) \text{PolyLog}\left (2,\frac{2}{1-a x}-1\right )}{c}+\frac{\log \left (2-\frac{2}{1-a x}\right ) \tanh ^{-1}(a x)^2}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.138105, antiderivative size = 67, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 5, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {1593, 5932, 5948, 6058, 6610} \[ -\frac{\text{PolyLog}\left (3,\frac{2}{1-a x}-1\right )}{2 c}+\frac{\tanh ^{-1}(a x) \text{PolyLog}\left (2,\frac{2}{1-a x}-1\right )}{c}+\frac{\log \left (2-\frac{2}{1-a x}\right ) \tanh ^{-1}(a x)^2}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1593
Rule 5932
Rule 5948
Rule 6058
Rule 6610
Rubi steps
\begin{align*} \int \frac{\tanh ^{-1}(a x)^2}{c x-a c x^2} \, dx &=\int \frac{\tanh ^{-1}(a x)^2}{x (c-a c x)} \, dx\\ &=\frac{\tanh ^{-1}(a x)^2 \log \left (2-\frac{2}{1-a x}\right )}{c}-\frac{(2 a) \int \frac{\tanh ^{-1}(a x) \log \left (2-\frac{2}{1-a x}\right )}{1-a^2 x^2} \, dx}{c}\\ &=\frac{\tanh ^{-1}(a x)^2 \log \left (2-\frac{2}{1-a x}\right )}{c}+\frac{\tanh ^{-1}(a x) \text{Li}_2\left (-1+\frac{2}{1-a x}\right )}{c}-\frac{a \int \frac{\text{Li}_2\left (-1+\frac{2}{1-a x}\right )}{1-a^2 x^2} \, dx}{c}\\ &=\frac{\tanh ^{-1}(a x)^2 \log \left (2-\frac{2}{1-a x}\right )}{c}+\frac{\tanh ^{-1}(a x) \text{Li}_2\left (-1+\frac{2}{1-a x}\right )}{c}-\frac{\text{Li}_3\left (-1+\frac{2}{1-a x}\right )}{2 c}\\ \end{align*}
Mathematica [A] time = 0.150091, size = 59, normalized size = 0.88 \[ \frac{\tanh ^{-1}(a x) \text{PolyLog}\left (2,e^{2 \tanh ^{-1}(a x)}\right )}{c}-\frac{\text{PolyLog}\left (3,e^{2 \tanh ^{-1}(a x)}\right )}{2 c}+\frac{\tanh ^{-1}(a x)^2 \log \left (1-e^{2 \tanh ^{-1}(a x)}\right )}{c} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.32, size = 717, normalized size = 10.7 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{\log \left (-a x + 1\right )^{3}}{12 \, c} + \frac{1}{4} \, \int -\frac{\log \left (a x + 1\right )^{2} - 2 \, \log \left (a x + 1\right ) \log \left (-a x + 1\right )}{a c x^{2} - c x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{\operatorname{artanh}\left (a x\right )^{2}}{a c x^{2} - c x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \frac{\int \frac{\operatorname{atanh}^{2}{\left (a x \right )}}{a x^{2} - x}\, dx}{c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{\operatorname{artanh}\left (a x\right )^{2}}{a c x^{2} - c x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]